package com.lakeworks.common.domain.channel;

import lombok.*;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.util.List;

/**
 * @Author: Auxps
 * @Date: 2023/2/9
 * Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PickupImport {
    private static final long serialVersionUID = 1L;

    /**
     * 商户订单号
     */
    private String orderNo;

    /**
     * 物流商
     */
//    @NotBlank(message = "40323")
    private String carrier;

    /**
     * 运单号
     */
    @NotBlank(message = "40323")
//    @Size(min = 8, message = "40324")
    private String expressNo;

    /**
     * 商品数量
     */
//    @Min(value = 1, message = "40513")
//    @NotNull(message = "40513")
    private Integer quantity;

    /**
     * 预计到厂日期  1970-01-01 00:00:00 UTC 至今的毫秒数
     */
    private Long eta;

    /**
     * 备注
     */
    private String comment;

    @Valid
    @NotEmpty(message = "40514")
    private List<MerchandiseItem> items;


    /**
     * 是否是救治单
     */
    private boolean treat;

    /**
     * 是否是转厂单
     */
    private boolean divert;

    /**
     * 是否是反厂单
     */
    private boolean recall;

    /**
     * 是否是回收单
     */
    private boolean recycle;


}
